<<<<<<< HEAD
<%--
  Created by IntelliJ IDEA.
  User: 59334
  Date: 2022-05-26
  Time: 19:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content= "text/html" charset="utf-8">
=======
<%@ page import="beans.Account" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
>>>>>>> f693e67 (代码)
    <title>用户登录</title>
</head>
<body>
<div class="logo_box">
    <img class="logo_img" src="img/login.png">
</div>
<div class="login_box">
<<<<<<< HEAD
    <form method="get" action="LoginServlet">
        <h1 class="title">欢迎登录</h1>
        <input class="input_box" type="text" placeholder="用户名" id="sno" name="sno">
        <input class="input_box" type="password" placeholder="密码" id="password" name="password">
        <select class="select_box" name = "position">
            <option value="员工">员工</option>
            <option value="经理">经理</option>
            <option value="财务">财务</option>
        </select>
        <input class="button_box" type="submit" value="登录">

=======
    <form method="post" action="LoginServlet">
        <h1 class="title">欢迎登录</h1>
        <input class="input_box" type="text" placeholder="用户名" id="sno" name="sno">
        <input class="input_box" type="password" placeholder="密码" id="password" name="password">
        <input class="button_box" type="submit" value="登录">
>>>>>>> f693e67 (代码)
    </form>
</div>
</body>
</html>
<<<<<<< HEAD
=======

<script>
    var error ='<%=request.getParameter("error")%>';
    switch (error){
        case "0":
            alert("用户不存在！");
            window.location.href("/");
            error = null;
            break;
        case "1":
            alert("该用户已被注销，请核实账号后登录！");
            window.location.href("/");
            error = null;
            break;
        case "2":
            alert("密码错误！请重新输入");
            window.location.href("/");
            error = null;
            break;
            default:
                break;
    }
</script>

>>>>>>> f693e67 (代码)
<style>
    body {
        background-color: #8ea4f8;
        background-image: url(img/login_background.jpg);
        background-repeat: no-repeat;
        background-size: cover; //背景图适应屏幕

    }
<<<<<<< HEAD
    .select_box{
        width: 300px;
        height: 30px;
        width: 300px;
        height: 40px;
        padding-left: 10px;
        margin-top: 20px;
        margin-left: 50px;
    }
=======
>>>>>>> f693e67 (代码)
    .login_box {
        width: 400px;
        height: 400px;
        background-color: #fff;
        margin: auto;
        margin-top: 150px;
        border-radius: 5px;
        overflow: hidden;//.title设置margin-top无效，给父元素设置overflow:hidden;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    }
    .title {
        text-align: center;
        font-size: 28px;
        color: #000;
        margin-top: 80px;
        margin-bottom: 10px;
        letter-spacing: 3px;
        font-family: sans-serif;
    }
    .input_box {
        width: 300px;
        height: 30px;
        width: 300px;
        height: 40px;
        padding-left: 10px;
        margin-top: 20px;
        margin-left: 50px;
    }
    .button_box {
        width: 315px;
        height: 35px;
        width: 315px;
        height: 40px;
        margin-top: 20px;
        margin-left: 50px;
        border-radius: 5px;
        background-color: #64a9d9;
        cursor: pointer;
        color: #fff;
    }
    .logo_box {
        position: absolute;
        background-color: #fff;
        width: 100px;
        height: 100px;
        border-radius: 100px;
        top: 100px;
        left: 46%;
        border: solid 5px #A68364;
        text-align: center;
    }
    .logo_img {
        max-width: 100%;
        max-height: 100%;
    //将图片放置在div盒子正中
    }
</style>
